package cash.cmp.personal_financial_system.service.impl;

import cash.cmp.personal_financial_system.mapper.RoleMapper;
import cash.cmp.personal_financial_system.model.Rights;
import cash.cmp.personal_financial_system.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    RoleMapper roleMapper;

    @Override
    public List<Rights> findRightsByRid(Integer rid) {
        return roleMapper.findRightsByRid(rid);
    }

    @Override
    public Boolean deleteUserRole(Integer id) {
        return roleMapper.deleteUserRole(id);
    }
}
